package kpython.backend.semantic;

public class FunctionRecord extends Record {

	private int nparams;

	public int getNparams() {
		return nparams;
	}

	public void setNparams(int nparams) {
		this.nparams = nparams;
	}
        
	
	@Override
	public String toString() {
		return "Function  "+this.getSymbol().toString()+" with "+this.getNparams()+
                        " parameters, at line "+this.getLine()+" and column "+this.getColumn() +
                        " with return type "+ this.getType();
	}

	public FunctionRecord(int nparams, int line, int column, Symbol symbol) {
		super(line, column, symbol);
		this.nparams = nparams;
	}	
        
        public FunctionRecord(int nparams, int line, int column, Symbol symbol, Type type) {
		super(line, column, symbol, type);
		this.nparams = nparams;
	}	
}
